import { axios } from "../utils/request";
// import qs from "qs";

const api = {
  PageList: "/system/log/page",
  Save: "/system/log/save"
};

/**
 * 获取日志列表
 * @param parameter
 * @returns {*}
 */
export function PageList(parameter) {
  return axios({
    url: api.PageList,
    method: "get",
    params: parameter
  });
};

/**
 * 保存日志
 */
export function save(data) {
  return axios({
    url: api.Save,
    method: "post",
    data: data
  });
};